package main.java.br.com.projeto.domain.entity;

import java.io.Serializable;

public class OrdemServicoPK implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -2040141615539487905L;

	private String numOs;

	private Long cliente;

	public String getNumOs() {
		return numOs;
	}

	public void setNumOs(String numOs) {
		this.numOs = numOs;
	}

	public Long getCliente() {
		return cliente;
	}

	public void setCliente(Long cliente) {
		this.cliente = cliente;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((cliente == null) ? 0 : cliente.hashCode());
		result = prime * result + ((numOs == null) ? 0 : numOs.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		OrdemServicoPK other = (OrdemServicoPK) obj;
		if (cliente == null) {
			if (other.cliente != null)
				return false;
		} else if (!cliente.equals(other.cliente))
			return false;
		if (numOs == null) {
			if (other.numOs != null)
				return false;
		} else if (!numOs.equals(other.numOs))
			return false;
		return true;
	}	
}
